<template>
  <router-view>
    <template #default="{ Component, route }">
      <keep-alive>
        <component :is="Component" :key="route.path" :layout="layout" />
      </keep-alive>
    </template>
  </router-view>
</template>
<script>
  import { defineComponent } from 'vue';
  export default defineComponent({
    name: 'AdminRouterPage',
    props: { layout: String },
  });
</script>
